package com.baizhi.appcontroller;

import com.baizhi.entity.CmfzLesson;
import com.baizhi.service.CmfzLessonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: renpu
 * @Date: 2019/3/7 16:51
 * @Description:
 *
 */
@RestController
@RequestMapping("AppLesson")
public class AppLessonController {

    @Autowired
    private CmfzLessonService lessonService;

    @GetMapping("selectLessonAll")
    public List<CmfzLesson> selectLessonAll(){
        return lessonService.selectAllLesson();

    }
}
